package com.shinhye.mobilelottery.net.protocol.element;

import org.xmlpull.v1.XmlSerializer;

import com.shinhye.mobilelottery.net.protocol.Element;
import com.shinhye.mobilelottery.net.protocol.Leaf;

public class IssueInfoElement extends Element {
	private Leaf lotteryid = new Leaf("lotteryid");
	private Leaf issues = new Leaf("issues","1");
	private Leaf lotteryname = new Leaf("lotteryname");
	private Leaf issue = new Leaf("issue");
	private Leaf lasttime = new Leaf("lasttime");
	
	public Leaf getLotteryid() {
		return lotteryid;
	}

	@Override
	public void serializer(XmlSerializer serializer) {
		try {
			serializer.startTag(null, "element");
			lotteryid.serializer(serializer);
			issues.serializer(serializer);
			serializer.endTag(null, "element");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	@Override
	public String getTransactiontype() {
		return "12002";
	}

	public Leaf getLotteryname() {
		return lotteryname;
	}

	public Leaf getIssue() {
		return issue;
	}

	public Leaf getLasttime() {
		return lasttime;
	}

}
